function buttnclick()
{
	alert('');
}
/*
function redraw_artdescr()//подгружает описание к артикулу
{
	var i;
	for (i=0;i<=c;i++)
	{
	hand=document.getElementsByName('art_nom_selectfield['+i+']')[0];
	choice=hand.options[hand.selectedIndex].value;
	document.getElementsByName('art_desc_inputfield['+i+']')[0].value=choice;	
	}
}
*/
function count1(f)
{
	var sum=0.0;
	var i;
	for (i=0;i<=50;i++)
	{
		if (typeof(document.getElementsByName('prodolzh_inputfield['+i+']')[0])!='undefined')
		{
			var han=document.getElementsByName('prodolzh_inputfield['+i+']')[0];
			var tmp=han.value;	
			if ((isNaN(tmp)) || (tmp=='')) 
			{
				han.style.color="red";
				han.value="NaN";
				han.focus();
			}
			else
			{
				document.getElementsByName('prodolzh_inputfield['+i+']')[0].style.color="black";
				sum+=parseFloat(tmp);
			}
		}
	}	
	document.getElementsByName('sumprodolzh')[0].value=sum	;	
}


function redraw_prostoy()
{
	redraw_universal('prostoy_nom_selectfield','prostoy_desc_selectfield');		
}

function redraw_universal(suf1, suf2)
{
	var i;
	for (i=0;i<=250;i++)
	{
		if (typeof(document.getElementsByName(suf1+'['+i+']')[0])!='undefined')
		{
			hand=document.getElementsByName(suf1+'['+i+']')[0];
			choice=hand.options[hand.selectedIndex].value;
			document.getElementsByName(suf2+'['+i+']')[0].value=choice;	
		}
	}
}

